package com.li.utilstest.statepage

import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.widget.TextView
import com.li.utilstest.R
import com.zy.multistatepage.MultiState
import com.zy.multistatepage.MultiStateContainer

/**
 * @author : liyun
 * @ClassName: EmptyState
 * @Package com.li.utilstest.statepage
 * @Description:
 * @company: 深圳君南信息系统有限公司
 * @date 2021/7/17 16:43
 * @version v1.0
 */
class FMEmptyState: MultiState() {
    var empty_msg:TextView?=null
    override fun onCreateMultiStateView(
        context: Context,
        inflater: LayoutInflater,
        container: MultiStateContainer
    ): View {
        return inflater.inflate(R.layout.state_empty, container, false)
    }

    override fun onMultiStateViewCreate(view: View) {
        empty_msg=view.findViewById<TextView>(R.id.tv_empty_msg)
    }

    fun setEmptyMsg(msg:String?){
        empty_msg?.text=msg
    }
}